package com.example.QQ;

import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

import com.example.QQ.Controller;
import com.example.QQ.Server;

public class ApplyApplication {
    public void Apply() throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("Apply.fxml"));
        Scene scene = new Scene(fxmlLoader.load());
        Controller hell=fxmlLoader.getController();
        Server server = new Server(hell);
        server.start();
        Stage stage = new Stage();
        stage.setTitle("账号申请界面");//设置标题
        stage.setScene(scene);
        stage.show();
    }
}
